#!/bin/echo Warning: this library should be sourced!

# ostype - Define the 'OSTYPE' variable in current operating system
ostype() {
  if [ -z $OSTYPE ] || [ "$OSTYPE" = "" ]; then
    local osName=$(uname -s)
    OSTYPE='UNKNOWN'
    case ${osName} in
      'FreeBSD') OSTYPE='freebsd'
        ;;
      'SunOS') OSTYPE='solaris'
        ;;
      'Linux') OSTYPE='linux'
        ;;
    esac
  fi
  return 0
}

